import { Application } from "egg";

export default (app: Application) => {
    const { router, controller } = app;
    // const checktoken = app.middleware.checktoken();
    router.post("/api/commodity/:id", controller.ctrlCommodity.post);
    router.get("/api/commodity", controller.ctrlCommodity.get);
    router.post("/api/commodity/del/:id", controller.ctrlCommodity.del);
    router.get("/api/commodity/detail", controller.ctrlCommodity.detail);
    
};
